package edu.sctu.practice.zhengsenwen.assign.assign02;

/**
 * Created by user15 on 2015/10/8.
 */
public class Client {
    public static void main(String[] args) {

        Rational rational1 = new Rational();
        Rational rational2 = new Rational();

        rational1.numberOne = rational2.add(1, 2);
        System.out.println(rational1.numberOne);

        rational1.numberOne = rational2.reduce(3, 4);
        System.out.println(rational1.numberOne);

        rational1.nubmerTwo = rational2.multiply(5, 6);
        System.out.println(rational1.nubmerTwo);

        rational1.nubmerTwo = rational2.multiply(7, 8);
        System.out.println(rational1.nubmerTwo);

    }
}
